import request from "@/utils/request";
// 房产数量
export function houseNum() {
  return request({
    url: "/index/overview/houseNum",
    method: "get"
  });
}
// 授权数量
export function authNum() {
  return request({
    url: "/index/overview/authNum",
    method: "get"
  });
}
// 业主数量
export function ownerNum() {
  return request({
    url: "/index/overview/ownerNum",
    method: "get"
  });
}
// 出售房产数量
export function sellNum() {
  return request({
    url: "/index/overview/sellNum",
    method: "get"
  });
}
// 出租房产数量
export function leaseNum() {
  return request({
    url: "/index/overview/leaseNum",
    method: "get"
  });
}
// 房产空置数量
export function vacantNum() {
  return request({
    url: "/index/overview/vacantNum",
    method: "get"
  });
}
// 房产类型
export function houseType() {
  return request({
    url: "/index/overview/houseType",
    method: "get"
  });
}
// 房产丢失数量
export function loseNum() {
  return request({
    url: "/index/overview/loseNum",
    method: "get"
  });
}

// 账单数量
export function billNum() {
  return request({
    url: "/manage/overview/billNum",
    method: "get"
  });
}

// 待上传账单数量
export function waitUploadBillNum() {
  return request({
    url: "/manage/overview/waitUploadBillNum",
    method: "get"
  });
}

// 已过期账单数量
export function expiredBillNum() {
  return request({
    url: "/manage/overview/expiredBillNum",
    method: "get"
  });
}

// 保险即将到期的房产
export function insuranceSoonExpireHouseApi() {
  return request({
    url: "/manage/overview/insuranceSoonExpireHouse",
    method: "get"
  });
}
// 保险已到期的房产
export function insuranceExpiredHouseApi() {
  return request({
    url: "/manage/overview/insuranceExpiredHouse",
    method: "get"
  });
}
// 将例行检查的房产
export function soonCheckUpHouseApi() {
  return request({
    url: "/manage/overview/soonCheckUpHouse",
    method: "get"
  });
}

/** 租赁数量 */
export function getLeaseNum() {
  return request({
    url: "/lease/overview/leaseNum",
    method: "get"
  });
}

/** 将到期 */
export function getSoonExpireNum() {
  return request({
    url: "/lease/overview/soonExpireNum",
    method: "get"
  });
}

/** 已到期 */
export function getExpiredNum() {
  return request({
    url: "/lease/overview/expiredNum",
    method: "get"
  });
}

/** 退房 */
export function getCheckOutHouse() {
  return request({
    url: "/lease/overview/checkOutHouse",
    method: "get"
  });
}

/** 招租中 */
export function getLeasingNum() {
  return request({
    url: "/lease/overview/leasingNum",
    method: "get"
  });
}

/** 待生效 */
export function getTobeEffectiveNum() {
  return request({
    url: "/lease/overview/tobeEffectiveNum",
    method: "get"
  });
}

/** 待交割 */
export function getWaitDeliveryHouse() {
  return request({
    url: "/lease/overview/waitDeliveryHouse",
    method: "get"
  });
}

/** 领钥匙 */
export function getWaitReciveKeyHouse() {
  return request({
    url: "/lease/overview/waitReciveKeyHouse",
    method: "get"
  });
}

/** 待交割详情 */
export function getWaitDeliveryHouseDet(data) {
  return request({
    url: "/lease/overview/waitDeliveryHouseDet",
    method: "post",
    data
  });
}

/** 领钥匙详情 */
export function getWaitReciveKeyHouseDet(data) {
  return request({
    url: "/lease/overview/waitReciveKeyHouseDet",
    method: "post",
    data
  });
}

/** 退房详情 */
export function getCheckOutHouseDet(data) {
  return request({
    url: "/lease/overview/checkOutHouseDet",
    method: "post",
    data
  });
}

/** 招租周期 */
export function getAverageRentCycle() {
  return request({
    url: "/lease/overview/averageRentCycle",
    method: "get"
  });
}

/** 出售周期 */
export function getAverageSaleCycle() {
  return request({
    url: "/lease/overview/averageSaleCycle",
    method: "get"
  });
}
/** 已过期账单详情 */
export function expiredBillDet(data) {
  return request({
    url: "/manage/overview/expiredBillDet",
    method: "post",
    data
  });
}
/** 待上传账单详情 */
export function waitUploadBillDet(data) {
  return request({
    url: "/manage/overview/waitUploadBillDet",
    method: "post",
    data
  });
}

/** 历史数据 */
export function historyHouseNum(data) {
  return request({
    url: "/index/overview/historyHouseNum",
    method: "get"
  });
}

/** 分布城市 */
export function distributCity(data) {
  return request({
    url: "/index/overview/distributCity",
    method: "get"
  });
}
